package com.system.demo.entity.database;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.collections4.list.CursorableLinkedList;

import java.time.LocalDateTime;

@Data
@TableName("leave_school")
public class Leave {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String uid;//学号

    private String userName;//姓名

    private String stuClass;//班级

    private String reason;//离校理由

    private String position;//前往地址

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leavingTime;//离校时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime backingTime;//预计返校时间

    private String url;//家长监护人联系记录照片url

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applicationTime;//申请时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvalTime;//审批时间

    private Integer status;//申请状态（0-已申请，1-已审批未通过，2-已审批已通过，3-已返校销假）

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkingTime;//返校销假申请时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvedTime;//销假审核时间

    private String number;//监护人联系电话

}
